<template>


  <div>
    <div class="row_a_c cursor" @click="fanghui" style="margin-bottom: 80px;">
      <div class="mr5">返回</div>
      <img src="../../assets/images/fh.png" style="width: 22px;height: 17px;" />
    </div>


    <div style="background: #F6F6F6;">
      <div class="center " style="overflow-y: hidden;overflow: visible;">
        <img style="position: absolute;height: 1160px;" src="../../assets/images/zwxqbg.png" />
        <div style="background: ;width: 80%;height: 100%;margin-top: 330px">
          <el-row :gutter="20">
            <el-col :span="19">
              <!-- 头部++++++++++++++++++++++++++++++++++++++++++++++++++ -->
              <div class="top_i" style="">
                <div class="f_18 mt_30">招聘中</div>
                <div class="row_a_c mt_30">
                  <div class="f_36 f_bold">{{jobInfo.title}}</div>
                  <div class="f_36 f_bold" style="color:#FF752A ;margin-left: 50px;">{{jobInfo.salary}}</div>
                </div>

                <div class="row_a_c">

                  <div class="row_a_c mt_30 mr_25" v-if="jobInfo.company">
                    <img style="width: 16px;height: 18px; margin-right: 10px;" src="../../assets/images/dw.png" />
                    <div>{{jobInfo.company.address}}</div>
                  </div>

                  <div class="row_a_c mt_30 mr_25">
                    <img style="width: 16px;height: 18px; margin-right: 10px;" src="../../assets/images/zyjl.png" />
                    <div>{{jobInfo.years_working}}</div>
                  </div>

                  <div class="row_a_c mt_30 mr_25">
                    <img style="width: 16px;height: 18px; margin-right: 10px;" src="../../assets/images/xueli.png" />
                    <div>{{jobInfo.education}}</div>
                  </div>

                </div>

                <div class="row_a_c mt_30">
                  <div class="daiyu center mr_20" v-for="(item, index) in jobInfo.welfare" :key="index">{{item}}</div>
                </div>

              </div>

              <div class=" bg-purple-b">


                <div class="f_22 f_bold" style="padding-top: 30px;padding-left: 30px;">职位描述</div>
                <div class="mt_30" style="line-height: 30px;padding-left: 30px;" v-html="jobInfo.content"></div>

                <div style="position: absolute;bottom: 20px;;padding-left: 30px;width: 100%;padding-right: 30px;">
                  <el-divider></el-divider>
                  <div class="row_a_c">
                    <img style="width: 70px;height: 70px;border-radius: 70px;margin-right: 20px;" src="../../assets/images/dgtx.png" />
                    <div>
                      <div class="row_a_c">
                        <div>{{jobInfo.creator}}</div>
                        <img style="width: 27px;height: 24px;" src="../../assets/images/vv.png" />
                      </div>
                      <div v-if="jobInfo.company">{{jobInfo.company.title}}</div>
                    </div>
                  </div>
                </div>



              </div>





            </el-col>


            <el-col :span="5">
              <div class=" bg-purple-a">
                <div class="f_20 center " style="color: #fff;padding-top: 10px;padding-bottom: 10px;">公司基本信息</div>
                <div class="center">
                  <div class="gsgg ">

                    <div class="row_a_c " v-if="jobInfo.company">
                      <img style="width:60px;height: 60px;" :src="jobInfo.company.picture" />
                      <div class="f_18 ml_16">{{jobInfo.company.title}}</div>
                    </div>

                    <div class="row_a_c mt_24 " v-if="jobInfo.company">
                      <img style="width:18px;height: 19px;" src="../../assets/images/rr.png" />
                      <div class="f_18 ml_16"><span v-if="jobInfo.company.is_financing==0">不需要融资</span>
                        <span v-else>需要融资</span>
                      </div>
                    </div>

                    <div class="row_a_c mt_24 " v-if="jobInfo.company">
                      <img style="width:18px;height: 19px;" src="../../assets/images/rs.png" />
                      <div class="f_18 ml_16">{{jobInfo.company.people}}人</div>
                    </div>


                    <div class="row_a_c mt_24 " v-if="jobInfo.company">
                      <img style="width:18px;height: 19px;" src="../../assets/images/xz.png" />
                      <div class="f_18 ml_16">{{jobInfo.company.type}}</div>
                    </div>

                    <div class="center mt_10">
                      <div class="ljlx center">
                        立即联系
                      </div>
                    </div>


                  </div>
                </div>
              </div>

              <div class=" bg-purple-aa"></div>
            </el-col>
          </el-row>


        </div>



      </div>



    </div>
  </div>
</template>

<script>
  export default {
    name: 'myCenter',
    props: {
      jobInfo: {
        type: Object,
        required: true,
      },
    },
    components: {


    },
    data() {
      return {
        id: '',
        loading: false
      }
    },
    mounted() {



    },
    created() {

    },

    methods: {
      sszw(id) {
        this.id = id;
        this.getJobShow(); //职位详情
      },
      toUrlc(url, id) {
        this.$router.replace({
          path: url,
          query: {
            id: id,
          }
        })
      },
      toUrl(url) {
        this.$router.push({
          path: url
        })
      },
 fanghui() {
        this.$emit('fanghui')
      },
    }
  }
</script>
<style>
  html,
  body,
  #app,
  .el-container {

    /* background: #7b4f4f !important; */
  }
</style>

<style lang="scss" scoped>
  .el-footer {
    padding: 0px;
  }

  .el-header {
    height: 70px !important;
    padding: 0px !important;

  }

  .bg-purple-a {
    height: 350px;
    border-radius: 20px;
    // padding: 30px;
    background: linear-gradient(180deg, #448DFF, #FFFFFF);
  }

  .bg-purple-aa {
    height: 350px;
    // background: #fff;
    border-radius: 20px;
    // padding: 30px;
    margin-top: 20px;
  }

  .bg-purple-b {
    min-height: 550px;
    background: #fff;
    border-radius: 20px;
    // padding: 35px;
    position: relative;

    // margin-bottom: 30px;
  }


  .bg-purple-bb {
    height: 220px;
    background: #fff;
    border-radius: 20px;
    padding: 35px;

    // margin-bottom: 30px;
  }

  .nianxing {
    width: 107px;
    height: 6px;
    background: #C1DEFA;
    border-radius: 3px;
    position: absolute;
    top: 50px;
  }

  .act {
    width: 100px;
    height: 40px;
    background: #448DFF;
    box-shadow: 0px 3px 8px 0px rgba(46, 120, 255, 0.55);
    border-radius: 20px;
    font-size: 18px;

    font-weight: bold;
    color: #FFFFFF;
    margin-right: 20px;
  }

  .wxa {
    width: 54px;
    height: 18px;
    font-size: 18px;

    font-weight: bold;
    color: #979797;
    margin-right: 20px;
  }

  .cqaimg {
    width: 340px;
    height: 188px;
  }


  .itemBox_jp {
    width: auto;
    display: flex;
    /* 两端对齐 */
    justify-content: space-between;
    flex-wrap: wrap;

    .item {
      width: 31%;
      height: 60px;
      text-align: center;
      margin-bottom: 230px;


      .leftts {
        text-align: left;
      }
    }

    /* 如果最后一行是3个元素 */
    .item:last-child:nth-child(3n - 1) {
      margin-right: calc(33.5% + 3% / 3);
    }

    /* 如果最后一行是2个元素 */
    .item:last-child:nth-child(3n - 2) {
      margin-right: calc(65% + 6% / 3);
    }
  }

  .top_i {
    // background: orangered;
    position: absolute;
    color: #FFFFFF;
    top: -350px;
    left: 10px;
    z-index: 2000;
  }

  .daiyu {
    width: 86px;
    height: 32px;
    background: #484FC7;
    border-radius: 4px;

    font-size: 18px;

    font-weight: 500;
    color: #FFFFFF;
  }

  .jdd {
    height: 10px;
    background: linear-gradient(90deg, #4172FF, #FFDAD0);
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
  }

  .fkd {
    position: absolute;
    top: 0;
    left: 20%;
  }

  .fkd2 {
    position: absolute;
    top: 0;
    left: 40%;
  }

  .fkd3 {
    position: absolute;
    top: 0;
    left: 60%;
  }

  .fkd4 {
    position: absolute;
    top: 0;
    left: 80%;
  }



  .fk {
    width: 7px;
    height: 10px;
    background: #FFFFFF;
    // background: red;
  }

  .gsgg {
    width: 250px;
    height: 280px;
    background: linear-gradient(180deg, #D0E3F2, #FFFFFF);
    border-radius: 12px;
    padding: 10px;
  }

  .ljlx {
    width: 194px;
    height: 43px;
    background: #FFFFFF;
    border: 2px solid #448DFF;
    border-radius: 12px;
    font-size: 18px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #448DFF;
  }

  .sszw {
    // width: 345px;
    width: 100%;
    height: 53px;
    background: #F1FAFF;
    padding: 20px;
    border-radius: 12px 12px 0px 0px;
  }
</style>
